Two of Mohammed's com- panions chose to reside in Je- rusalem, adding to the city's importance in Islam. One of them, Ubadah Ibn a-Samit, was elected first qadi of Jeru- salem.